<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if $is_admin === false}
    <div class="form-group">
        <label for="c-policy" class="control-label col-xs-12 col-sm-2">{:__('政策列表')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-policy" data-rule="required" class="form-control selectpicker" name="policy">
                <option value="">--请选择--</option>
                {foreach name="list" item="vo"}
                <option value="{$vo['id']}">{$vo['title']}</option>
                {/foreach}
            </select>

        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required" data-source="product/ajax" data-params='{"custom[status]":1}' {if $is_admin === false} disabled {/if} {if $super}data-params='{"custom[id]":["in",{$ids}]}'{/if} class="form-control selectpage" name="row[product_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('费率')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rate_ids" data-rule="required" data-multiple="true" class="form-control selectpage" name="row[rate_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('交易类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transaction_type_ids" data-rule="required" data-multiple="true" class="form-control selectpage" name="row[transaction_type_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('卡类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_type" data-rule="required" data-multiple="true" class="form-control selectpage" name="row[card_type]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收款方式')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-channel_ids" data-rule="required" data-multiple="true" class="form-control selectpage" name="row[channel_ids]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day_limit" data-rule="required" class="form-control" name="row[day_limit]" type="number" {if $is_admin === false} readonly {/if}>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="text" {if $is_admin === false} readonly {/if}>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reward')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reward" data-rule="required" class="form-control" name="row[reward]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
